package {
	import flash.display.BitmapData;
	
	import mx.controls.Alert;
	
	import org.libspark.faceit.camshift.TrackObj;
	import org.libspark.faceit.camshift.Tracker;

	public class Detector {
		public static function detect(input:BitmapData):TrackObj {
			var tracker:Tracker = new Tracker();
			tracker.initTracker(input, input.rect);
			tracker.track(input);			
			return tracker.getTrackObj();
		}
	}
}